package com.weixingzh.entity;

import com.weixingzh.utils.GetWxToken;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.Component;

/**
 * @FileName GetWxTokenBean
 * @Description 获取微信token时返回的Bean
 * @Author Me
 * @date 2024-07-19
 **/

@Component
//@Configuration
//@ConfigurationProperties(prefix = "wxactoken")      //将配置文件中前缀为wxactoken的所有属性映射到类属性上
public class GetWxTokenBean {
    @Value("${wxactoken.grant_type}")
    public String grant_type;
    @Value("${wxactoken.appid}")
    public String appid;
    @Value("${wxactoken.secret}")
    public String secret;

//    @Bean
//    public GetWxToken GetInst() {
//        return new GetWxToken();
//    }
}
